﻿
#ifndef UTILS_H
#define UTILS_H


#include <QObject>


class Utils : public QObject
{
    Q_OBJECT


public:
    static QByteArray quint16ToByteArray(quint16 value);
    static QByteArray quint16VecToByteArray(const QVector<quint16> &vector);
    static quint16 bytesToQuint16(char high,char low,QSysInfo::Endian);
signals:
private:
    explicit Utils(QObject *parent = nullptr);
};

#endif // UTILS_H
